﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200088B RID: 2187
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GHNANGCGLGK : IMessage<GHNANGCGLGK>, IMessage, IEquatable<GHNANGCGLGK>, IDeepCloneable<GHNANGCGLGK>, IBufferMessage
	{
		// Token: 0x17001B88 RID: 7048
		// (get) Token: 0x060061B9 RID: 25017 RVA: 0x00103ACF File Offset: 0x00101CCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GHNANGCGLGK> Parser
		{
			get
			{
				return GHNANGCGLGK._parser;
			}
		}

		// Token: 0x17001B89 RID: 7049
		// (get) Token: 0x060061BA RID: 25018 RVA: 0x00103AD6 File Offset: 0x00101CD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GHNANGCGLGKReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B8A RID: 7050
		// (get) Token: 0x060061BB RID: 25019 RVA: 0x00103AE8 File Offset: 0x00101CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GHNANGCGLGK.Descriptor;
			}
		}

		// Token: 0x060061BC RID: 25020 RVA: 0x00103AEF File Offset: 0x00101CEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GHNANGCGLGK()
		{
		}

		// Token: 0x060061BD RID: 25021 RVA: 0x00103B10 File Offset: 0x00101D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GHNANGCGLGK(GHNANGCGLGK other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this.itemValue_ = other.itemValue_;
			this.miracleList_ = other.miracleList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060061BE RID: 25022 RVA: 0x00103B62 File Offset: 0x00101D62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GHNANGCGLGK Clone()
		{
			return new GHNANGCGLGK(this);
		}

		// Token: 0x17001B8B RID: 7051
		// (get) Token: 0x060061BF RID: 25023 RVA: 0x00103B6A File Offset: 0x00101D6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonBuff> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x17001B8C RID: 7052
		// (get) Token: 0x060061C0 RID: 25024 RVA: 0x00103B72 File Offset: 0x00101D72
		// (set) Token: 0x060061C1 RID: 25025 RVA: 0x00103B7A File Offset: 0x00101D7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemValue
		{
			get
			{
				return this.itemValue_;
			}
			set
			{
				this.itemValue_ = value;
			}
		}

		// Token: 0x17001B8D RID: 7053
		// (get) Token: 0x060061C2 RID: 25026 RVA: 0x00103B83 File Offset: 0x00101D83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<GameRogueMiracle> MiracleList
		{
			get
			{
				return this.miracleList_;
			}
		}

		// Token: 0x060061C3 RID: 25027 RVA: 0x00103B8B File Offset: 0x00101D8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GHNANGCGLGK);
		}

		// Token: 0x060061C4 RID: 25028 RVA: 0x00103B9C File Offset: 0x00101D9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GHNANGCGLGK other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && this.ItemValue == other.ItemValue && this.miracleList_.Equals(other.miracleList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060061C5 RID: 25029 RVA: 0x00103C00 File Offset: 0x00101E00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			if (this.ItemValue != 0U)
			{
				num ^= this.ItemValue.GetHashCode();
			}
			num ^= this.miracleList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060061C6 RID: 25030 RVA: 0x00103C5B File Offset: 0x00101E5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060061C7 RID: 25031 RVA: 0x00103C63 File Offset: 0x00101E63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060061C8 RID: 25032 RVA: 0x00103C6C File Offset: 0x00101E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.miracleList_.WriteTo(ref output, GHNANGCGLGK._repeated_miracleList_codec);
			this.buffList_.WriteTo(ref output, GHNANGCGLGK._repeated_buffList_codec);
			if (this.ItemValue != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ItemValue);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060061C9 RID: 25033 RVA: 0x00103CCC File Offset: 0x00101ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(GHNANGCGLGK._repeated_buffList_codec);
			if (this.ItemValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemValue);
			}
			num += this.miracleList_.CalculateSize(GHNANGCGLGK._repeated_miracleList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060061CA RID: 25034 RVA: 0x00103D30 File Offset: 0x00101F30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GHNANGCGLGK other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			if (other.ItemValue != 0U)
			{
				this.ItemValue = other.ItemValue;
			}
			this.miracleList_.Add(other.miracleList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060061CB RID: 25035 RVA: 0x00103D8E File Offset: 0x00101F8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060061CC RID: 25036 RVA: 0x00103D98 File Offset: 0x00101F98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 26U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ItemValue = input.ReadUInt32();
						}
					}
					else
					{
						this.buffList_.AddEntriesFrom(ref input, GHNANGCGLGK._repeated_buffList_codec);
					}
				}
				else
				{
					this.miracleList_.AddEntriesFrom(ref input, GHNANGCGLGK._repeated_miracleList_codec);
				}
			}
		}

		// Token: 0x0400256E RID: 9582
		private static readonly MessageParser<GHNANGCGLGK> _parser = new MessageParser<GHNANGCGLGK>(() => new GHNANGCGLGK());

		// Token: 0x0400256F RID: 9583
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002570 RID: 9584
		public const int BuffListFieldNumber = 3;

		// Token: 0x04002571 RID: 9585
		private static readonly FieldCodec<RogueCommonBuff> _repeated_buffList_codec = FieldCodec.ForMessage<RogueCommonBuff>(26U, RogueCommonBuff.Parser);

		// Token: 0x04002572 RID: 9586
		private readonly RepeatedField<RogueCommonBuff> buffList_ = new RepeatedField<RogueCommonBuff>();

		// Token: 0x04002573 RID: 9587
		public const int ItemValueFieldNumber = 13;

		// Token: 0x04002574 RID: 9588
		private uint itemValue_;

		// Token: 0x04002575 RID: 9589
		public const int MiracleListFieldNumber = 1;

		// Token: 0x04002576 RID: 9590
		private static readonly FieldCodec<GameRogueMiracle> _repeated_miracleList_codec = FieldCodec.ForMessage<GameRogueMiracle>(10U, GameRogueMiracle.Parser);

		// Token: 0x04002577 RID: 9591
		private readonly RepeatedField<GameRogueMiracle> miracleList_ = new RepeatedField<GameRogueMiracle>();
	}
}
